import request from '@/utils/request.js'

const base_url = 'site/hosp/hospital'
export default{
    getHospitalList(page,limit,searchObj){
        return request({
            url:`${base_url}/findHospitalPage/${page}/${limit}`,
            method:'get',
            params:searchObj
        })
    },
    getHospitalLikeName(hosname){
        return request({
            url:`${base_url}/findHospitalLikeName/${hosname}`,
            method:'get'
        })
    },
    findHospitalByHoscode(hoscode){
        return request({
            url:`${base_url}/findHospitalByHoscode/${hoscode}`,
            method:'get'
        })
    },
    findDepartmentTreeFront(hoscode){
        return request({
            url:`${base_url}/findDepartmentTreeFront/${hoscode}`,
            method:'get'
        })
    },
    getBookingScheduleRule(page,limit,hoscode,depcode){
        return request({
            url:`${base_url}/auth/getBookingScheduleRule/${page}/${limit}/${hoscode}/${depcode}`,
            method:'get'
        })
    },
    findScheduleList(hoscode,depcode,workDate){
        return request({
            url:`${base_url}/auth/findScheduleList/${hoscode}/${depcode}/${workDate}`,
            method:'get'
        })
    },
    getSchedule(scheduleId){
        return request({
            url:`${base_url}/auth/getScheduleById/${scheduleId}`,
            method:'get'
        })
    }
}